package com.example.campsystem.service.impl;

import com.example.campsystem.service.FileService;
import com.example.campsystem.tool.OSSFileUtil;
import lombok.RequiredArgsConstructor;
import org.springframework.stereotype.Service;
import org.springframework.web.multipart.MultipartFile;

@Service
@RequiredArgsConstructor
public class FileServiceImpl implements FileService {
    private final OSSFileUtil ossFileUtil;

    @Override
    public String uploadFile(MultipartFile file) {
        return ossFileUtil.uploadFile(file);
    }
}